const redis = require('redis')
const {REDIS_CONFIG} = require('../config/db.js')

var redisClient = redis.createClient(REDIS_CONFIG.port,REDIS_CONFIG.host)
redisClient.on('error',err=>{
  return console.error(err)
})
module.exports= redisClient
